.SUFFIXES:.c .o    
    
CC=gcc    
SRCS1=qqserver.c\  
    pub.c    
SRCS2=qqclient.c\  
    pub.c    
    
OBJS1=$(SRCS1:.c=.o)    
OBJS2=$(SRCS2:.c=.o)    
EXEC1=qqserver    
EXEC2=qqclient    
    
    
start: $(OBJS1) $(OBJS2)    
    $(CC) -o $(EXEC1) $(OBJS1) -lpthread  
    $(CC) -o $(EXEC2) $(OBJS2) -lpthread   
    @echo '----------------ok------------'    
    
.c.o:    
    $(CC) -Wall -o $@ -c $<    
    
clean:    
    rm -f $(OBJS)  